﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LiveMatchManager.ascx.cs" Inherits="Web.Cms.LiveMatch.LiveMatchManager" %>
<%@ Register src="../AjaxCP/Paging.ascx" tagname="Paging" tagprefix="uc1" %>

<div class="rows">
    <div class="fl width130 title-text"> <strong>Tên trận đấu</strong></div>
    <div class="fl"><asp:TextBox ID="txtKeysearch" runat="server" Height="20px" CssClass="textbox-title"></asp:TextBox></div>    
</div>
<div class="cl5"></div>
<div class="rows">
    <div class="fl width130 title-text"><strong>Tên link xem trận đấu</strong></div>
    <div class="fl"><asp:TextBox ID="txtLinkLive" runat="server" Height="20px" CssClass="textbox-title"></asp:TextBox>
    </div>
</div>
<div class="cl5"></div>
<div class="rows">
       <div class="fl">
           <asp:HiddenField ID="txtId" runat="server" />
    </div>
</div>
<div class="cl5"></div>
<div class="rows">
    <div class="fl width70 title-text"></div>
    <div class="fl">
        <asp:Button runat="server" ID="btnTimKiem" CssClass="Button_Search" OnClick="btnTimKiem_Click"/>
        <a style="cursor:hand;" href="javascript:void(0)" onclick="javascript:return showPopWinADMIN('/Cms/LiveMatch/CreateEditLiveMatch.aspx','Thêm Mới Link Live',600,350,null,__doPostBack)">
        <img src="/App_Themes/Default/Images/Add_b.gif" border="0" /></a>
    </div>
</div>
<div class="cl5"></div>
<div style=" padding-left:50px;"><asp:Label Font-Bold="true" ForeColor="red" Font-Size="11px" ID="lblMessage" runat="server"></asp:Label></div>
<div class="cl5"></div>
<p class="heading">Danh sách link trận đấu</p>
<div class="cl5"></div>
<asp:GridView ID="grdData" runat="server" SkinID="AdminGridView" 
    BackColor="White" AutoGenerateColumns="False" onrowcommand="grdData_RowCommand">
    <Columns>               
         <asp:BoundField HeaderText="STT">
            <ItemStyle HorizontalAlign="Center" Width="20px" />
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle />
        </asp:BoundField>                   
        
         <asp:TemplateField HeaderText="Tên trận đấu">
           <ItemTemplate>
              <%#Eval("Title")%>
           </ItemTemplate>
         
         </asp:TemplateField>
        <asp:TemplateField HeaderText="Tên link trận đấu" HeaderStyle-Width="620 ">
            <ItemTemplate>       
              <a class="Headline" href='#?id=<%#Eval("Id") %>'><%#Eval("LinkLive")%></a>
            </ItemTemplate>                     
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>                  
        
        <asp:TemplateField HeaderText="Sửa" HeaderStyle-Width="20">
            <ItemTemplate>                       
               <a style="cursor:hand;" href="javascript:void(0)" onclick="javascript:return showPopWinADMIN('/Cms/LiveMatch/CreateEditLiveMatch.aspx?id=<%# Eval("Id") %>','Chỉnh Sửa Thông Tin Link Trận Đấu',550,400,null,__doPostBack)">
                <img src="../../App_Themes/Default/Images/edit.gif" border="0"></a>                                     
            </ItemTemplate>

           <HeaderStyle Width="20px"></HeaderStyle>
        </asp:TemplateField>                   
        <asp:TemplateField HeaderText="Xóa" HeaderStyle-Width="20">
            <ItemTemplate>             
                <asp:Button ID="btnDelete" runat="server" CssClass="Icon_Delete" CommandArgument='<%# Eval("Id") %>' CommandName="Commanddelete" OnClientClick="return confirm('Bạn có chắc chắn xóa không')" />                   
            </ItemTemplate>

            <HeaderStyle Width="20px"></HeaderStyle>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<div class="cl5"></div>
<p style="text-align:center;">
    &nbsp;<uc1:Paging ID="Paging1" runat="server" />
 
